<?php
/*************

     *
    * *
   * * *
  * * * *
 * * * * *

   ||

     *
    **
   ***
  ****
 *****
    ||

####*
###**
##***
#****
*****

*************/

for (define('NUM',5),$k = 1; $k <= NUM ; printf("\n"),$k++)
{
  for ($i = 1; $i <= NUM-$k ;printf(" "), $i++);
  for ($j = 1; $j <=$k  ; printf("* "),$j++);
}










